﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Deployment.Application;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

using ProgramMain.Framework;

namespace ProgramMain
{
    public partial class FrmAbout : DevExpress.XtraEditors.XtraForm
    {
        public FrmAbout()
        {
            InitializeComponent();
            this.Icon = GlobalData.DefaultIcon();
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
        }

        private void FrmAbout_Load(object sender, EventArgs e)
        {
            labelProgramName.Text = ProgramMain.Framework.GlobalData.GetAssemblyTitle();
            Version ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
           // labelVersion.Text = ver.ToString(2);
            labelVersion.Text = Properties.Settings.Default.AppVersion;
            if (ApplicationDeployment.IsNetworkDeployed)
            {
                ver = ApplicationDeployment.CurrentDeployment.CurrentVersion;
            }
            labelBuild.Text = ver.Revision.ToString();
        }
    }
}